package com.company.cloud.mall.modules.app.controller.req;

import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.mall.constant.PayMethodEnum;
import com.company.cloud.pay.modules.api.constant.PayTradeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;

@Getter
@Setter
public class Pay2SingleParam extends BaseParam {

    @ApiModelProperty(value = "订单流水号", required = true)
    @NotEmpty(message = "订单流水号不能为空")
    private String sn;

    @ApiModelProperty(value = "支付方式【PayMethodEnum】", required = true)
    @NotEmpty(message = "支付方式不能为空")
    private String payMethod = PayMethodEnum.PM_Online_Pay.getCode();

    @ApiModelProperty(value = "支付通道【PayTradeType】")
    private String paymentChannel = PayTradeType.WX_JSAPI.getCode();

    @ApiModelProperty(value = "第三方用户标识【测试使用】")
    private String thirdOpenId;

    @ApiModelProperty(value = "页面回调地址")
    private String returnUrl;


}
